﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MAF.Tests
{
    /// <summary>
    /// 某类
    /// </summary>
    [Serializable]
    public class Stuff
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="id"></param>
        public Stuff(int id)
        {
            Id = id;
        }

        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        public Stuff(int id, string name)
        {
            Id = id;
            Name = name;
        }

        /// <summary>
        /// 持久化必须的约定属性名称：Id
        /// </summary>
        public int Id { get; private set; }

        /// <summary>
        /// 其他属性
        /// </summary>
        public string Name { get; set; }
    }
}
